<?php

use think\migration\Seeder;

class BasicMachineGroup extends Seeder
{
    /**
     * 机组
     */
    public function run()
    {
        $table = $this->table('basic_machine_group');
        $rows  = [
            //晋能热电有2个机组
            [
                'machine_name' => '机组1',
                'company_id'   => '1',    //公司ID
            ],
            [
                'machine_name' => '机组2',
                'company_id'   => '1',    //公司ID
            ],
        ];
        $table->insert($rows)->save();
    }
}